package com.nian.search.solr.service;

import com.nian.search.solr.model.SolrItem;
import com.nian.search.solr.vo.SolrItemVO;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/14 0014 11:44
 */
public interface ISolrItemService {

    SolrItem findById(String id);

    SolrItem save(SolrItem model);

    Iterable<SolrItem> saveAll(List<SolrItem> list);

    void deleteById(String id);

    Page<SolrItem> listPage(Pageable page);

    Iterable<SolrItem> findAll();

    Page<SolrItem> search(SolrItemVO query);
}
